<html>
<head>
<meta charset="utf-8">
<title>Ïîðàáîòàåì ñ Java-Script</title>
</head>
<body>
<form name="f1">
 <input type="text" size="20" name="t1" value="×óâàê"><br>
 <input type="button" value="Æìè!" onclick="Hello()">
</form>

</body>
<script language="JavaScript">
function Hello() {
 alert("Ïðèâåò, " + document.f1.t1.value+"!");
}

</script>
</html>